<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddPayOpenToConfigStorms extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('config_storms', function (Blueprint $table) {
            $table->boolean('is_alipay_open')->default(true)->comment('阿里支付开关');
            $table->boolean('is_wxpay_open')->default(true)->comment('微信支付开关');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('config_storms', function (Blueprint $table) {
              $table->dropColumn(['is_alipay_open','is_wxpay_open']);
        });
    }
}
